<template>
    <router-view />
</template>
<script setup>
import {onBeforeMount, onMounted} from "vue";
import {useUserInfoStore} from "./store/modules/userInfo.js";
import pinia from "./store/index.js";
import axios from "axios";
const userInfoStore = useUserInfoStore(pinia)
onBeforeMount(()=>{
    if (localStorage.getItem("token")){
        userInfoStore.token = localStorage.getItem("token")
    }
})
// 测试Mock数据接口
// onMounted(async ()=>{
//    const result = await axios.get("/mock/order/allOrderList?state=5");
//     console.log(result)
// })
</script>
<style lang="less">

</style>
